import request from '@/utils/request'

export function articleAPI (current, sorter) {
  return request.get('/h5/interview/query', {
    params: {
      current,
      pageSize: 10,
      sorter
    }
  })
}
export const getOneArticle = id =>
  request.get('/h5/interview/show', {
    params: {
      id
    }
  })

export const updataLikeAndCollect = data =>
  request.post('/h5/interview/opt', data)

export const likeAndCollectAPI = params =>
  request.get('/h5/interview/opt/list', { params })
